<?php

include_once("../model/Model.php");

$comments = $_POST['comments'];
$title = $_FILES['videofile']['name'];
$album = $_POST['album'];
$privacy = $_POST['privacy'];
$category = $_POST['category'];
$new_suggest=$_POST['new_suggest'];

//$filename = $_FILES['videofile']['name'];

//$ext = end(explode(".", $_FILES['videofile']['name']));


$model = new Model();
$ans = $model->videoUpload($album,$title,$comments,$privacy,$category,$new_suggest);

//echo  "<script>top.videoUploadComplete('".$ans."','".$album."','".$title."','".$comments."','".$privacy."','".$category."');";

echo  "<script>parent.$.fancybox.close();</script>";

?>
